﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace Hangout.Services.Core.Notification
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "NotificationService" in code, svc and config file together.
    // NOTE: In order to launch WCF Test Client for testing this service, please select NotificationService.svc or NotificationService.svc.cs at the Solution Explorer and start debugging.
    public class NotificationService : INotificationService
    {

        Web.Services.Notification.Notification wrapper = new Web.Services.Notification.Notification();

        public void MarkAllAsRead(int userId,string accesstoken)
        {
            wrapper.MarkAllAsRead(userId, accesstoken);
        }


        public List<Web.Services.Objects.Notification> GetNotifications(int userId, int take, int skip, string accesstoken)
        {
            return wrapper.GetNotifications(userId, take, skip, accesstoken);
        }

        public Hangout.Web.Model.Notification GetNotification(int notificationId,string accesstoken)
        {
            return wrapper.GetNotification(notificationId, accesstoken);

        }
    }
}
